home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trading on the Edge
/
Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin
/
pc
/
mac_file
/
vendor_d
/
neuralwa
/
nw2v50
/
uio_strc.h
< prev
next >
Wrap
Text File
|
1993-08-23
|
8KB
|
243 lines
/* uio_strc.h */
/************************************************************************
* Copyright(C) 1987-1992 NeuralWare Inc *
* Penn Center West, IV-227, Pittsburgh, PA 15276 *
* Telephone: (412) 787-8222 FAX: (412) 787-8220 *
* *
* All rights reserved. No part of this program may be reproduced, *
* stored in a retrieval system, or transmitted, in any form or by any *
* means, electronic, mechanical, photocopying, recording or otherwise *
* without the prior written permission of the copyright owner, *
* NeuralWare, Inc. *
* *
* PROPRIETARY NOTICE *
* *
* This document is the property of NeuralWare, Inc. and contains *
* trade-secrets and other proprietary information. The information *
* herein is reserved as proprietary to NeuralWare, and is not to be *
* published, reproduced, copied, disclosed, used, or reverse *
* engineered without the express written consent of a duly authorized *
* representative of NeuralWare. *
************************************************************************
*/
/*******************************************************************/
/* */
/* uio_strc.h - structure definitions for UserIO interface */
/* arguments */
/* Author: John C. Fairman August 31, 1990 */
/* Copyright 1990 by NeuralWare Inc. */
/* */
/* $Author : $ */
/* $Date : $ */
/* $Source : $ */
/* $Revision : $ */
/* $Log : $ */
/* */
/*******************************************************************/
#ifndef UIO_STRC_H
#define UIO_STRC_H 1
#if 0 /* If you want a full test you must define FULLTEST here
since THINK_C doesn't have command line defines */
#ifdef THINK_C
#define FULLTEST 1
#endif /* THINK_C */
#endif
/**/
typedef struct {
SREAL ape_I; /* sum */
SREAL ape_Tran; /* tran */
SREAL ape_Output; /* output */
SREAL ape_Err; /* error */
SREAL ape_CumErr; /* cumulative error */
UNINT ape_Flags; /* flags */
} APE;
typedef struct {
SL asc_recall; /* recall counter */
SREAL asc_rcl[10]; /* recall data */
SL asc_learn; /* learn counter */
SREAL asc_lrn[10]; /* learn data */
} ASCOL;
typedef struct {
TEXT asc_nam[16]; /* schedule name */
ASCOL asc_col[5]; /* data columns */
} ASCHED;
typedef struct {
UNINT start_in;
UNINT start_out;
SREAL min_in;
SREAL max_in;
SREAL min_out;
SREAL max_out;
} IOPARMS;
typedef struct {
UNINT num_pes;
UNINT n_wt_flds;
UNINT sum_f;
UNINT tran_f;
UNINT output_f;
UNINT learn_f;
UNINT error_f;
UNINT noise_f;
/* The following are the only ones that can be written to */
SREAL scale;
SREAL offst;
SREAL fprm_offst;
SREAL low_init;
SREAL high_init;
SREAL unused;
} ALYR;
#ifndef N2PRUNE
#ifndef NPHIST
#define NPHIST 100 /* # of items in histogram */
#endif
typedef struct {
SL PRNwts; /* # of weights in network */
SREAL PRMin; /* smallest weight */
SREAL PRMax; /* maximum weight */
SREAL PRSum; /* sum of weights */
SREAL PRAverage; /* average weight */
SREAL PRMedian; /* median value */
NINT PRHist[NPHIST]; /* histogram of weights */
SREAL PRMinA; /* min absolute magnitude */
SREAL PRMaxA; /* max absolute magnitude */
SREAL PRSumA; /* sum of abs values */
SREAL PRAverageA; /* average absolute weight */
SREAL PRMedianA; /* median of magnitudes */
NINT PRHistA[NPHIST]; /* histogram of magnitudes */
} PRSTATS; /* prune statistics */
#endif
/* Window management */
#if defined(USES_WINDOWS) && !defined(TEST)
struct _uwin /* user i/o window */
{
UB uw_flag; /* flag for in use */
#define UWF_INUSE 0x01 /* this window is "inuse" */
#define UWF_UNDISP 0x02 /* window has been erased */
UB uw_color; /* background color */
RECTANGLE uw_box; /* coordinates of the box */
};
typedef struct _uwin UWIN;
#define NWINS 8
#endif /* defined(USES_WINDOWS) && !defined(TEST) */
/* Host UIO errors */
#define UNABLE_TO_ALLOCATE_VEC 0x80
/* Server UIO errors */
#define BAD_WINDOW_NUMBER 0x90
/* User Return Values */
#define UIO_OK 0
#define UIO_UPDATE 1
#define UIO_EXIT 2
#define UIO_ERROR -1
#ifdef HOME_FOR_UIO_DATA
#ifndef DP_RUN
#ifdef UIO_SERVER
GLOBALDEF NINT gm_intcolor = 0; /* interior color */
GLOBALDEF NINT gm_outcolor = 0; /* outline color */
GLOBALDEF NINT gm_txtcolor = 0; /* text color */
#endif
#if !defined(UIO_SERVER) || !defined(EMULATING)
GLOBALDEF NINT UIO_error_value = 0;
#else /* !defined(UIO_SERVER) || !defined(EMULATING) */
GLOBALREF NINT UIO_error_value;
#endif /* else of !defined(UIO_SERVER) || !defined(EMULATING) */
#endif /* not DPTEST */
#else /* HOME_FOR_UIO_DATA */
#ifndef DPTEST
GLOBALREF NINT UIO_error_value;
#endif
#ifndef DPTEST
#ifdef UIO_SERVER
GLOBALREF NINT gm_intcolor; /* interior color */
GLOBALREF NINT gm_outcolor; /* outline color */
GLOBALREF NINT gm_txtcolor; /* text color */
#endif
#endif
#endif /* HOME_FOR_UIO_DATA */
#ifndef SKIP_COMPAT_DATA
#ifdef HOME_FOR_COMPAT_DATA
GLOBALDEF SREAL *IODATA = (SREAL *)NULL;
GLOBALDEF NINT IOCOUNT = 0;
GLOBALDEF NINT IOLAYER = 0;
GLOBALDEF NINT IOREQCDE = 0;
GLOBALDEF NINT IORTNCDE = 0;
#else /* HOME_FOR_COMPAT_DATA */
GLOBALREF SREAL *IODATA;
GLOBALREF NINT IOCOUNT;
GLOBALREF NINT IOLAYER;
GLOBALREF NINT IOREQCDE;
GLOBALREF NINT IORTNCDE;
#endif /* else of HOME_FOR_COMPAT_DATA */
#endif /* USES_COMPAT_DATA */
/**/
#ifdef MAC
#include "macuio.h"
#endif
/* Usual configuration */
#define GRUPDATE(a, b, c) GRUpdate(a, b, c); /* <- note ';' */
#define MOVEMEM(a, b, c) memcpy((char *)a, (char *)b, (size_t)c)
#define SET_STRUCTS_EQ(a, b) a = (b)
#define CTRIO_T long
#define TRIAL_NUM_T long
#define MSGLEN_T int
#define MSGDIR_T int
/* Variants from the usual configuration */
#if defined(IBP) || defined(I860) || defined(IBM)
#ifdef HOST
#undef CTRIO_T
#define CTRIO_T int
#undef TRIAL_NUM_TYPE
#define TRIAL_NUM_TYPE int
#endif
#if defined(NDP) || defined (__ZTC__)
#define REAL_ARGS_PROBLEM
#endif
#endif
#if defined(MAC)
#ifdef HOST
#undef MSGLEN_T
#define MSGLEN_T short
#undef MSGDIR_T
#define MSGDIR_T short
#endif
#endif
#endif /* ifndef UIO_STRC_H */